<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('修改【请填写功能名称】')" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-driver-edit" th:object="${zzDriver}">
            <input name="driverId" th:field="*{driverId}" type="hidden">
            <div class="form-group">    
                <label class="col-sm-3 control-label">司机姓名：</label>
                <div class="col-sm-8">
                    <input name="driverName" th:field="*{driverName}" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">司机电话：</label>
                <div class="col-sm-8">
                    <input name="driverPhone" th:field="*{driverPhone}" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">司机身份证号：</label>
                <div class="col-sm-8">
                    <input name="driverIdcard" th:field="*{driverIdcard}" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">司机状态：</label>
                <div class="col-sm-8">
                    <div class="radio-box">
                        <input type="radio" name="driverStatus" value="在职" >
                        <label th:for="driverStatus" th:text="在职" ></label>
                    </div>
                    <div class="radio-box">
                        <input type="radio" name="driverStatus" value="休假" >
                        <label th:for="driverStatus" th:text="休假"></label>
                    </div>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">司机驾驶证编号：</label>
                <div class="col-sm-8">
                    <input name="driverLicence" th:field="*{driverLicence}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">司机驾龄：</label>
                <div class="col-sm-8">
                    <input name="driverAge" th:field="*{driverAge}" class="form-control" type="text">
                </div>
            </div>
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <script type="text/javascript">
        var prefix = ctx + "system/driver";
        $("#form-driver-edit").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/edit", $('#form-driver-edit').serialize());
            }
        }
    </script>
</body>
</html>